package com.ruoyi.be.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.be.mapper.MedicalCpoexxMapper;
import com.ruoyi.be.domain.MedicalCpoexx;
import com.ruoyi.be.service.IMedicalCpoexxService;

/**
 * 病房记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-08
 */
@Service
public class MedicalCpoexxServiceImpl implements IMedicalCpoexxService 
{
    @Autowired
    private MedicalCpoexxMapper medicalCpoexxMapper;

    /**
     * 查询病房记录
     * 
     * @param id 病房记录主键
     * @return 病房记录
     */
    @Override
    public MedicalCpoexx selectMedicalCpoexxById(String id)
    {
        return medicalCpoexxMapper.selectMedicalCpoexxById(id);
    }

    /**
     * 查询病房记录列表
     * 
     * @param medicalCpoexx 病房记录
     * @return 病房记录
     */
    @Override
    public List<MedicalCpoexx> selectMedicalCpoexxList(MedicalCpoexx medicalCpoexx)
    {
        return medicalCpoexxMapper.selectMedicalCpoexxList(medicalCpoexx);
    }

    /**
     * 新增病房记录
     * 
     * @param medicalCpoexx 病房记录
     * @return 结果
     */
    @Override
    public int insertMedicalCpoexx(MedicalCpoexx medicalCpoexx)
    {
        return medicalCpoexxMapper.insertMedicalCpoexx(medicalCpoexx);
    }

    /**
     * 修改病房记录
     * 
     * @param medicalCpoexx 病房记录
     * @return 结果
     */
    @Override
    public int updateMedicalCpoexx(MedicalCpoexx medicalCpoexx)
    {
        return medicalCpoexxMapper.updateMedicalCpoexx(medicalCpoexx);
    }

    /**
     * 批量删除病房记录
     * 
     * @param ids 需要删除的病房记录主键
     * @return 结果
     */
    @Override
    public int deleteMedicalCpoexxByIds(String[] ids)
    {
        return medicalCpoexxMapper.deleteMedicalCpoexxByIds(ids);
    }

    /**
     * 删除病房记录信息
     * 
     * @param id 病房记录主键
     * @return 结果
     */
    @Override
    public int deleteMedicalCpoexxById(String id)
    {
        return medicalCpoexxMapper.deleteMedicalCpoexxById(id);
    }
}
